package com.haiyisoft.eclipse.uep.generate.simple.provider;

import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.swt.graphics.Image;

import com.haiyisoft.eclipse.uep.generate.simple.model.ActionResultsModel;


/**
 * ActionResultsTableViewer labelProvider
 * @author sh
 *
 */
public class ResultsTableViewerLabelProvider extends LabelProvider implements ITableLabelProvider {
	public Image getColumnImage(Object element, int columnIndex) {
		return null;
	}

	public String getColumnText(Object element, int columnIndex) {
		ActionResultsModel result = (ActionResultsModel)element;
		switch(columnIndex){
		case 0:
			return result.getName();
		case 1:
			return result.getType();
		case 2:
			return result.getLocation();
		default:
			return null;	
		}
	}

}
